<?php
if (THIS_SERVER_IS_CROS['api']) {
    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
    header("Access-Control-Allow-Headers: Authorization");
//    header("Access-Control-Request-Headers: *");
    header('Access-Control-Max-Age: 86400');
    if ($_SERVER['REQUEST_METHOD'] === "OPTIONS") {
        exit("ok");
    }
}